#!/usr/bin/perl -w
use strict;
use warnings;
use diagnostics;
use log_case;
use XTM;
use LinuxPC;

#******** Variable for PC1---NET4PC1(linux pc)
my $remote_pc_eth0_ip         = "10.138.103.22";
my $remote_pc_eth1_ip         = "192.168.20.2";

#******** Variable for DUT---XTM8
my $dut_external_ip     = "10.0.120.1";
my $dut_mgmt_ip         = "192.168.10.81";
my $dut_trusted_subnet  = "192.168.20.0/24";
my $local_pc_eth0_ip    = "10.138.103.22";
my $local_pc_eth1_ip    = "192.168.20.2";
my $sslvpn_addrpool     = "192.168.20.128/25";

#******** Variable for DUT---XTM26-w
#my $dut_external_ip     = "172.17.1.15";
#my $dut_mgmt_ip         = "192.168.10.25";
#my $dut_trusted_subnet  = "172.100.1.0/24";
#my $local_pc_eth0_ip    = "10.138.103.21";
#my $local_pc_eth1_ip    = "172.100.1.22";
#my $sslvpn_addrpool     = "172.100.1.128/25";


my %sslvpn_user         = (name=>"test", passwd=>"11111111");

my $dut1 = new XTM(eth1=>$dut1_mgmt_ip);

my $client   = new LinuxPC(HostIP=>$remote_pc_eth0_ip, UserName=>'automation', Password=>'password', RootPassword=>'password');
my $local_pc = new LinuxPC(HostIP=>$local_pc_eth0_ip, UserName=>'automation', Password=>'password', RootPassword=>'password');


# 1. setup SSLVPN on firebox
# 2. download client from firebox
# 3. connect SSLVPN client from remote PC
# 4. send ICMP traffic and check traffic.